<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html><head>
        <link rel="stylesheet" type="text/css" href="apidocs.css"/>
        <title>API docs for &ldquo;sympy.specfun.factorials._Factorial&rdquo;</title>
        </head>
        <body><h1 class="class">Class s.s.f._Factorial(Function):</h1><span id="part">Part of <a href="sympy.specfun.factorials.html">sympy.specfun.factorials</a></span><p>known subclasses: <a href="sympy.specfun.factorials.UnevaluatedFactorial.html">sympy.specfun.factorials.UnevaluatedFactorial</a></p><div class="toplevel"><pre>Factorials and multiple factorials

Usage
=====
    factorial(x) gives the factorial of x, defined as
    x! = 1*2*3*...*x if x is a positive integer. If x is not a
    positive integer, the value of x! is defined in terms of the
    gamma function.

    factorial(x, m) returns the m-th order multifactorial of x;
    i.e., 1 * ... * (x-2*m) * (x-m) * x. In particular,
    factorial(x, 2) returns the double factorial of x,

      * x!! = 2*4*...*(x-2)*x if x is a positive even integer
      * x!! = 1*3*...*(x-2)*x if x is a positive odd integer

    The argument m must be a positive integer.

Examples
========
    >>> factorial(5)
    120
    >>> factorial(0)
    1
    >>> factorial(Rational(5,2))
    (15/8)*pi**(1/2)

    >>> factorial(5, 2)
    15
    >>> factorial(6, 2)
    48</pre></div><table class="children"><tr class="function"><td>Function</td><td><a href="#sympy.specfun.factorials._Factorial._fac1">_fac1</a></td><td><span class="undocumented">Undocumented</span></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.specfun.factorials._Factorial.canonize">canonize</a></td><td><span class="undocumented">Undocumented</span></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.specfun.factorials._Factorial.fdiff">fdiff</a></td><td><span class="undocumented">Undocumented</span></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.specfun.factorials._Factorial._eval_apply_evalf">_eval_apply_evalf</a></td><td><div><p>Return a low-precision numerical approximation.</p>
</div></td></tr></table>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.specfun.factorials._Factorial._fac1">_fac1(n, prev):</a></div>
            <div class="functionBody"><div class="undocumented">Undocumented</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.specfun.factorials._Factorial.canonize">canonize(cls, x, m=1):</a></div>
            <div class="functionBody"><div class="undocumented">Undocumented</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.specfun.factorials._Factorial.fdiff">fdiff(self, argindex=1):</a></div>
            <div class="functionBody"><div class="undocumented">Undocumented</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.specfun.factorials._Factorial._eval_apply_evalf">_eval_apply_evalf(cls, x, m=1):</a></div>
            <div class="functionBody"><div><p>Return a low-precision numerical approximation.</p>
</div></div>
            </div></body>
        